/*            Copyright(c) 2006-2008 Dave Sexton           *
 * http://www.codeplex.com/DocProject                      *
 * http://www.codeplex.com/DocProject/Project/License.aspx *
 ***********************************************************/
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.ComponentModel.Design;

namespace DaveSexton.DocProject
{
	public class ServiceContainer : Container
	{
		#region Constructors
		/// <summary>
		/// Constructs a new instance of the <see cref="ServiceContainer" /> class.
		/// </summary>
		public ServiceContainer()
		{
		}
		#endregion

		#region Methods
		protected override object GetService(Type service)
		{
			object result = DocProjectEnvironment.GetService(service);

			if (result != null)
				return result;
			else
				return base.GetService(service);
		}
		#endregion
	}
}
